﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BT_BieuThuc_Nhom13.Expressions;
using BT_BieuThuc_Nhom13.Converter;

namespace BT_BieuThuc_Nhom13
{
    class Program
    {
        static void Main(string[] args)
        {
            Expression exp = new AdditiveExpr(ConstExpr.CreateObject(5), ConstExpr.CreateObject(6));
            exp.SetConverter(MyConverter.GetConverter("Infix"));
            Console.WriteLine("Infix");
            Console.WriteLine(exp.ToString());

            exp.SetConverter(MyConverter.GetConverter("Suffix"));
            Console.WriteLine("Suffix");
            Console.WriteLine(exp.ToString());

            exp.SetConverter(MyConverter.GetConverter("Prefix"));
            Console.WriteLine("Prefix");
            Console.WriteLine(exp.ToString());
        }
    }
}
